import action.GoddessAction;
import model.Goddess;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class TestAction {
    public static void main(String[] args) {

        GoddessAction goddessAction = new GoddessAction();

        List<Map<String,Object>> parmas = new ArrayList<>();
        HashMap<String,Object> map = new HashMap<>();
        map.put("name","user_name");
        map.put("rela","=");
        map.put("value","'小王'");
        parmas.add(map);

        List<Goddess> gs = goddessAction.query(parmas);
        for (Goddess g : gs) {
            System.out.println(g.getUserName() + "," + g.getAge());
        }
    }
}
